widgetpath: Use CSS-like syntax in to_string()
authorBenjamin Otte <otte@redhat.com>
Wed, 13 Aug 2014 14:18:04 +0000 (16:18 +0200)
committerBenjamin Otte <otte@redhat.com>
Wed, 13 Aug 2014 14:51:16 +0000 (16:51 +0200)
Print pseudo-classes using ':' sign.

gtk/gtkwidgetpath.c

index b33d23bd8b6749379ccbea753ccee9155c4e7be1..aeb2980fe7441c37ef61a0ab7ee7c3616156ab3f 100644 (file)
@@ -337,18 +337,16 @@ gtk_widget_path_to_string (const GtkWidgetPath *path)
 
           appended = FALSE;
           fclass = g_type_class_ref (GTK_TYPE_STATE_FLAGS);
-          g_string_append_c (string, '[');
           for (i = 0; i < fclass->n_values; i++)
             {
               if (elem->state & fclass->values[i].value)
                 {
                   if (appended)
-                    g_string_append_c (string, '|');
+                    g_string_append_c (string, ':');
                   g_string_append (string, fclass->values[i].value_nick);
                   appended = TRUE;
                 }
             }
-          g_string_append_c (string, ']');
           g_type_class_unref (fclass);
         }